﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class farm_manager : MonoBehaviour {

    private Transform fish_root;
    private void Awake()
    {
        fish_root = transform.Find("fish_root");
    }

    public void remove_all_fishes()
    {
        List<Transform> child = new List<Transform>();
        foreach (Transform t in fish_root.transform)
        {
            child.Add(t);
        }
        for (int i = 0; i < child.Count; i++)
        {
            GameObject.Destroy(child[i].gameObject);
        }
        float fish = (float) Random.Range(10, 50)/10.0f;
    }
}
